package com.hxl.demo.service.Impl;

import com.hxl.demo.entity.Leave;
import com.hxl.demo.entity.Staff;
import com.hxl.demo.entity.User;
import com.hxl.demo.mapper.LeaveMapper;
import com.hxl.demo.mapper.StaffMapper;
import com.hxl.demo.mapper.UserMapper;
import com.hxl.demo.service.LeaveService;
import com.hxl.demo.service.StaffService;
import com.hxl.demo.tools.Common;
import com.hxl.demo.tools.Result;
import org.springframework.stereotype.Service;
import org.springframework.util.DigestUtils;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

@Service
public class LeaveServiceImpl implements LeaveService {

    @Resource
    private LeaveMapper leaveMapper;
    @Override
    public  List<Leave> leaveList(Integer page, Integer limit, Integer id) {
        List<Leave> list=leaveMapper.leaveList(page,limit,id);

        return list;
    }

    @Override
    public Integer leaveNum(Integer id) {
        return leaveMapper.leaveNum(id);
    }
}

